package com.colin.jipay;

import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

/**
 * author : Colin
 * e-mail : Colin12138@gmail.com
 * qq     : 3327763437
 * date   : 2019/4/32:02 AM
 */
public class BaseActivity extends AppCompatActivity {
    public ProgressDialog loadingProgress;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        loadingProgress = new ProgressDialog(this, ProgressDialog.STYLE_SPINNER);

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (loadingProgress != null && loadingProgress.isShowing()) {
            loadingProgress.cancel();
            loadingProgress = null;
        }
    }
}
